﻿using SFB;
using System;
using UnityEngine;

//使用插件：https://github.com/gkngkc/UnityStandaloneFileBrowser?tab=readme-ov-file
public class FileDialog
{
	public static string Read(string defaultName)
    {
        
    }
	
    public static string Save(string defaultName)
    {
        var extensionList = new[] {
            new ExtensionFilter("Image Files", "jpg", "png"),
        };
        var defaultDir = $"{Application.streamingAssetsPath}/../../";
        return StandaloneFileBrowser.SaveFilePanel("Save File", defaultDir, defaultName, extensionList);
    }
}
